package com.onLineCar.management.feign;




/**
 * @author : 段敏强
 * @className : DispatchVehicleData
 * @description : 描述说明该类的功能
 * @createTime : 2023/12/19 19:46
 */

import com.onLineCar.management.domain.DispatchVehicleRequest;
import com.onLineCar.management.feign.impl.DispatchVehicleDataFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调度车辆数据
 */
@FeignClient(name = "onLineCar-engine",fallback = DispatchVehicleDataFallback.class)
public interface DispatchVehicleData{


    /**
     * 调度汽车发送订单
     */
    @PostMapping("/dispatch/dispatchVehicleSendOrder")
    public void driverDistribution(@RequestBody DispatchVehicleRequest dispatchVehicleRequest);

}
